﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace NAVE_Alice_demo.Cena08
{
    class RachaCuca
    {
        private Cena._0Cena cena;
        private Puzzle._0Puzzle puzzle;
        private SideQuest._0SideQuest sideQuest;

        public enum Local
        { CENA, PUZZLE, SIDEQUEST }
        public static Local localAtual = Local.CENA;

        private MouseCustomizado mouseCustomizado;
        
        public RachaCuca(ContentManager Content)
        {
            cena = new Cena._0Cena(Content);

            mouseCustomizado = new MouseCustomizado(Content);
        }


        private MouseState mouse;
        public void Update(GameTime gameTime)
        {
            mouse = Mouse.GetState();
            switch (localAtual)
            {
                case Local.CENA:
                    cena.Update(gameTime, mouse);
                    break;
                case Local.PUZZLE:
                    break;
                case Local.SIDEQUEST:
                    break;
            }
            mouseCustomizado.AtualizePosicao(new Vector2(mouse.X, mouse.Y));
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            switch (localAtual)
            {
                case Local.CENA:
                    cena.Draw(spriteBatch);
                    break;
                case Local.PUZZLE:
                    break;
                case Local.SIDEQUEST:
                    break;
            }

            mouseCustomizado.Draw(spriteBatch);
        }
    }
}
